<?php

namespace admin;

class Mod
{
    static private  $table="admin";
    //检查登录状态
    static function getUser($where){
        $mdb=mdb();
        $user=$mdb->get(self::$table,"*",$where);
        return $user;
    }
    static function getChannel(){
        $mdb=mdb();
        //缓存
        $channel=cGet("channel");
        if(!$channel) {
            $channel = $mdb->get("channel", "*", ["ORDER" => ["corder" => "ASC"]]);
        }
        return $channel;
    }

}